/*
 * tim.c
 *
 *  Created on: Mar 27, 2022
 *      Author: Abyss
 */

#include "config.h"

void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
{
  UNUSED(htim);
  if(htim == &htim7)
  {
	  static int time=0;
	  time++;
	  if(time == 500)
	  {
		time=0;
		HAL_GPIO_TogglePin(LED0_GPIO_Port, LED0_Pin);
	  }
  }
  if(htim == &htim1)
  {
	  Uart3_Tim_Call();
  }
}

